package ml.coursedesign.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author likeqc.top
 * @since 2021-04-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Course implements Serializable {

  private static final long serialVersionUID = 1L;

  /** 课程号 */
  @TableId(type = IdType.AUTO)
  private Integer id;

  /** 课程名 */
  private String name;

  /** 学时 */
  private Integer hours;

  /** 学分 */
  private Float credit;
}
